package com.zhan.easyexcelvalidation;

import com.zhan.easyexcelvalidation.util.ExcelReader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import javax.validation.Validator;

@SpringBootApplication
public class EasyexcelValidationApplication {

    public static void main(String[] args) {
        SpringApplication.run(EasyexcelValidationApplication.class, args);
    }

    @Bean
    public ExcelReader excelReader(Validator validator) {
        return new ExcelReader(validator);
    }
}
